// 发票列表
export function invoiceList (data) {
  return window.fetch({
    method: 'POST',
    url: '/invoice/list',
    data: data
  })
}

// 发票详情
export function invoiceInfo (id) {
  return window.fetch({
    method: 'POST',
    url: '/invoice/info',
    data: id
  })
}

// 领取发票
export function updateGet (data) {
  return window.fetch({
    method: 'POST',
    url: '/invoice/get',
    data: data
  })
}

//  快递下拉
export function crrcpull (data) {
  return window.fetch({
    method: 'POST',
    url: '/invoice/crrcpull',
    data: data
  })
}

//  邮寄发票
export function mail (data) {
  return window.fetch({
    method: 'POST',
    url: '/invoice/mail',
    data: data
  })
}

//  开票失败
export function failure (data) {
  return window.fetch({
    method: 'POST',
    url: '/invoice/failure',
    data: data
  })
}

// 开票成功
export function succeed (id) {
  return window.fetch({
    method: 'POST',
    url: '/invoice/succeed',
    data: id
  })
}

//  邮箱发票 
export function send_email (id) {
  return window.fetch({
    method: 'POST',
    url: '/invoice/email',
    data: id
  })
}
